package com.lichuang.dedao.user.controller;


import com.lichuang.dedao.user.service.impl.FollowServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 关注 前端控制器
 * </p>
 *
 * @author hanghang
 * @since 2019-07-13
 */
@RestController
@RequestMapping("//follow")
public class FollowController {

    @Autowired
    private FollowServiceImpl followService;

    @RequestMapping("/follow")
    public Integer follow(Integer userId, Integer followedUserId){
        return followService.follow(userId,followedUserId);
    }

}
